-- GENERATED SPELL FOR [Unleashed Hellion] --


function spell0_25002(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(20754,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25002', 9000, 1)
end

function spell1_25002(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(11876,pUnit)
pUnit:RegisterEvent('Sorts_25002', 5347, 1)
end

function Sorts_25002(pUnit, Event)
local choix_sorts_25002 = math.random(0, 1)
if choix_sorts_25002 == 0 then
pUnit:RegisterEvent('spell0_25002', 1, 1)
end
if choix_sorts_25002 == 1 then
pUnit:RegisterEvent('spell1_25002', 1, 1)
end
end

function mob25002_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25002', math.random(1500, 3000), 1)
end

function mob25002_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25002_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25002_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25002, 1, 'mob25002_Action')
RegisterUnitEvent(25002, 2, 'mob25002_Leave')
RegisterUnitEvent(25002, 3, 'mob25002_Kill')
RegisterUnitEvent(25002, 4, 'mob25002_Die')
